package cn.xshi.actuator.jvm.server;
import lombok.Data;

/**
 * @Desc CPU相关信息
 * @Author 邓纯杰
 * @CreateTime 2013-10-05 17:15:42
 */
@Data
public class CpuInfo {

	private int cpuNum;/**核心数**/

	private double total;/**CPU总的使用率**/

	private double sys;/**CPU系统使用率**/

	private double used;/**CPU用户使用率**/

	private double wait;/**CPU当前等待率**/

	private double free;/**CPU当前空闲率**/

	/**
	 * 构造函数
	 */
	public CpuInfo(){

	}

	/**
	 * 构造函数
	 * @param cpuNum
	 * @param total
	 * @param sys
	 * @param used
	 * @param wait
	 * @param free
	 */
	public CpuInfo(int cpuNum,double total,double sys,double used,double wait,double free){
		this.cpuNum = cpuNum;
		this.total = total;
		this.sys =sys;
		this.used = used;
		this.wait = wait;
		this.free = free;
	}
}
